package patrol.mobile.com.mobilepatrol.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;

/**
 * Created by K on 2018/9/13.
 * des:
 */
public class SummaryOfChargesAdapter extends BaseQuickAdapter<String>{
    public SummaryOfChargesAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_traffic_all;
    }

    @Override
    protected void convert(BaseViewHolder holder, String item) {
        if (holder.getAdapterPosition() == 0){
            holder.setText(R.id.itemFormText01,"日期");
            holder.setText(R.id.itemFormText02,"通行费");
            holder.setText(R.id.itemFormText03,"减免金额");
            holder.setText(R.id.itemFormText04,"合计");
        }
    }
}
